package com.one.shopping.entity;

import java.io.Serializable;

/**
 * 商品实体类
 * @author 柯尊诚
 * @version 1.0
 * @date 创建时间：2016/1/9 9:58
 */
public class Goods implements Serializable {

    private String id;         //商品ID
    private String name;    //商品名称
    private String image;   //商品图片
    private int stock;      //商品库存量
    private String price;   //商品价格

    public Goods() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", image='" + image + '\'' +
                ", stock=" + stock +
                ", price=" + price +
                '}';
    }
}
